﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/MainContent.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Register Assembly="CKFinder" Namespace="CKFinder" TagPrefix="CKFinder" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	File
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 

    <div id="fullBox">
        <div class="tabListBoxHead">
            <div style="float: left; padding-top: 3px;">
                <img src="/Content/add.png" width="16" height="16" border="0" align="absmiddle" style="margin-right: 3px;" />
                文件管理              
            </div>
            <div style="float: right;">
            </div>
        </div>
        <div class="tabListBox">
        
              <p style="padding-left: 30px; padding-right: 30px;">
		<CKFinder:FileBrowser ID="FileBrowser1"  BasePath="/ck/ckfinder/" Width=100% Height=700px SelectFunction="ShowFileInfo" runat="server"></CKFinder:FileBrowser>
	     </p>

        </div>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphMeta" runat="server">
<script type="text/javascript" src="/ck/ckfinder/ckfinder.js"></script>
<script type="text/javascript">

    // This is a sample function which is called when a file is selected in CKFinder.
    function ShowFileInfo(fileUrl, data) {
        var msg = 'The selected URL is: ' + fileUrl + '\n\n';
        // Display additional information available in the "data" object.
        // For example, the size of a file (in KB) is available in the data["fileSize"] variable.
        if (fileUrl != data['fileUrl'])
            msg += 'File url: ' + data['fileUrl'] + '\n';
        msg += 'File size: ' + data['fileSize'] + 'KB\n';
        msg += 'Last modifed: ' + data['fileDate'];

        alert(msg);
    }

	</script>


</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphFooter" runat="server">

 
 
</asp:Content>
